package com.ajocer.springbootinit.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * Elasticsearch配置类
 * 当spring.elasticsearch.enabled=false时生效
 */
@Configuration
@ConditionalOnProperty(name = "spring.elasticsearch.enabled", havingValue = "false", matchIfMissing = false)
public class ElasticsearchConfig {
    // 不需要任何方法，仅用于条件配置
} 